package com.project.controller;

import com.project.bean.UserBean;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.time.LocalDate;

@RestController //@Controller + @ResponseBody
@RequestMapping("my")
public class MyController {

    @RequestMapping("getBean")
    public UserBean getBean(){
        return new UserBean(3,"肖红", LocalDate.parse("1995-09-21"));
    }
}
